package com.itheima.pojo;

import lombok.Getter;

/**
 * 支付状态枚举
 */
@Getter
public enum PaymentStatus {
    PENDING("pending", "待支付"),
    PROCESSING("processing", "支付处理中"),
    PAID("paid", "已支付"),
    FAILED("failed", "支付失败"),
    REFUNDING("refunding", "退款处理中"),
    REFUNDED("refunded", "已退款"),
    CLOSED("closed", "支付关闭");

    private final String value;
    private final String description;

    PaymentStatus(String value, String description) {
        this.value = value;
        this.description = description;
    }
}